//
//  TLSFSymbols7ViewController.swift
//  TLiOS26LiquidGlassDemo
//
//  Created by jiayin on 2025/7/14.
//

import UIKit
import SnapKit

class TLSFSymbols7ViewController: UIViewController {
    // 创建UIImageView来显示符合图标
    private let symbolImageView: UIImageView = {
        let imageView = UIImageView()
        imageView.image = UIImage(systemName: "gear")?.applyingSymbolConfiguration(.init(scale: .large))
//        imageView.tintColor = .black
//        imageView.translatesAutoresizingMaskIntoConstraints = false
        return imageView
    }()
    
    
    override func viewDidLoad() {
        super.viewDidLoad()
        view.backgroundColor = .white
        
        setupUI()
        
        // 模拟数据更新
        DispatchQueue.main.asyncAfter(deadline: .now() + 3) {
            UIView.transition(with: self.symbolImageView, duration: 0.3, options: .transitionCrossDissolve, animations: {
                self.symbolImageView.image = UIImage(systemName: "checkmark")
            }, completion: nil)
        }
        
    }
    
    
    private func setupUI() {
        // 添加UILabel到contentView
        view.addSubview(symbolImageView)
        
        symbolImageView.snp.makeConstraints { make in
            make.center.equalToSuperview()
        }
    }
}
